package cn.ad.server.persistence;

import java.util.List;

import cn.ad.server.domain.ad.AdMaterial;
import cn.ad.server.domain.ad.AdMaterialGroup;
import cn.ad.server.domain.ad.Creative;

public interface CreativeRepository {

	void warmUpCreative();

	Creative findById(long id);

	List<AdMaterial> findAdMaterials(long id);

	void warmUpAdMaterials();

	List<AdMaterialGroup> findAdMaterialGroup(Creative c);

	void warmUpAdMaterialGroup();

	void warmUpAdTemplate();

	void warmUpAdTemplateSpec();

	AdMaterial findAdMaterialById(long id);

	long countUserAndCreativeClick(long cid, String uniqueId);

	long countUserAndCreativeImpressions(long cid, String uniqueId);

	long fetchUserAndCreativeClick(long cid, String uniqueId);

	long fetchUserAndCreativeImpressions(long cid, String uniqueId);

}
